package com.itheima.prototype.demo;

/**
 * @author zzw
 * @date 2025/9/22
 * @description 具体原型类
 */
public class RealizeType implements Cloneable {

    public RealizeType() {
        System.out.println("具体原型类创建完成！");
    }

    @Override
    protected RealizeType clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功！");
        return (RealizeType) super.clone();
    }
}
